<template>
  <div class="main-layout">
    <Sidebar />
    <div class="main-content">
      <div class="page-container">
        <router-view />
      </div>
    </div>
  </div>
</template>
  
<script setup>
  import Sidebar from '@/components/Sidebar.vue'
</script>
  
<style scoped>
  .main-layout {
    display: flex;
    height: 100%;
  }
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  .page-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f7fa;
  }
</style>